import { User } from './base'

/**
 * 普通用户
 */
class OrdinaryUser extends User {
  permissions: string[]

  // Define constructor
  constructor(password: string, first_name: string, last_name: string, email: string) {
    super(password, first_name, last_name, email)
    this.permissions = ['view']
  }
}

/**
 * 员工用户，用于系统的内部人员
 */
class Employee extends User {
  permissions: string[]

  constructor(password: string, first_name: string, last_name: string, email: string) {
    super(password, first_name, last_name, email)
    this.permissions = ['view', 'edit']
  }
}

export { OrdinaryUser, Employee }
